<template>
  <div class="baidu-search search-button" v-on:click="xiu">百度</div>
</template>

<script>
export default {
  name: 'baidu-search.vue',
  data () {
    return {
      myData: {
        myUrl: 'https://www.baidu.com',
        action: '/s',
        uname: 'wd',
        message: '百度一下'
      }
    }
  },
  methods: {
    xiu () {
      this.$emit('pa', this.myData)
    }
  }

}
</script>

<style scoped>
@import "button.css";

.baidu-search {
  color: #4662D9;
}
</style>
